package com.haojiang.mh.service.entity;

/**
 * 日报评分
 *
 * Created by ZapFive on 2019-05-25.
 * <p>
 * wuzhuang@mirahome.me
 */
public class DayScoreBean {
    private String date;
    private int score = -1;//默认值为-1表示不显示当天分数部分
    private boolean isWeekend = false;//周末
    private boolean isCurrMonth = true;//本月天
    private boolean isBestScore = false;//最高得分

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public int getDay() {
        return Integer.parseInt(date.substring(8));
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public boolean isWeekend() {
        return isWeekend;
    }

    public void setWeekend(boolean weekend) {
        isWeekend = weekend;
    }

    public boolean isCurrMonth() {
        return isCurrMonth;
    }

    public void setCurrMonth(boolean currMonth) {
        isCurrMonth = currMonth;
    }

    public boolean isBestScore() {
        return isBestScore;
    }

    public void setBestScore(boolean bestScore) {
        isBestScore = bestScore;
    }

    @Override
    public String toString() {
        return "DayScoreBean{" +
                "date='" + date + '\'' +
                ", score=" + score +
                ", isWeekend=" + isWeekend +
                ", isCurrMonth=" + isCurrMonth +
                ", isBestScore=" + isBestScore +
                '}';
    }
}
